<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">图书信息{{title}}</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;"><span ng-click="cancel()">返回</span></a>
                    </div>
                </div>
                <div class="widget-body am-fr">
                    <form class="am-form tpl-form-border-form tpl-form-border-br">
                        <div class="am-form-group">
                            <label for="name" class="am-u-sm-3 am-form-label">书籍名称<span class="requireColor">*</span></label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="name" placeholder="请输入书籍名称" ng-model="entity.name" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="isbn" class="am-u-sm-3 am-form-label">ISBN<span class="requireColor">*</span></label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="isbn" placeholder="请输入ISBN" ng-model="entity.isbn" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="author" class="am-u-sm-3 am-form-label">作者</label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="author" placeholder="请输入作者" ng-model="entity.author" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="publish" class="am-u-sm-3 am-form-label">出版社名称</label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="publish" placeholder="请输入出版社名称" ng-model="entity.publisher" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="vsn" class="am-u-sm-3 am-form-label">版次</label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="vsn" placeholder="请输入版次" ng-model="entity.revision" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="langurge" class="am-u-sm-3 am-form-label">语种</label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="language" placeholder="请输入语种" ng-model="entity.language" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="bookCategory" class="am-u-sm-3 am-form-label">
                                选择分类
                            </label>
                            <div class="am-u-sm-9">
                                <select id="bookCategory" ng-model="entity.bookCategoryId" ng-options="item.id as item.name for item in bookClassifyData" ng-disabled="viewFlag" style="color:darkgray;">
                                    <option value="">请选择分类...</option>
                                </select>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="price" class="am-u-sm-3 am-form-label">价格</label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="price" placeholder="请输入价格" ng-model="entity.price" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="pagenum" class="am-u-sm-3 am-form-label">页数</label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="pagenum" placeholder="请输入页数" ng-model="entity.pageNum" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="openb" class="am-u-sm-3 am-form-label">开本</label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="openb" placeholder="请输入开本" ng-model="entity.bookSize" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="buyTime" class="am-u-sm-3 am-form-label">购买时间</label>
                            <div class="am-u-sm-9">
                                <input type="date" class="tpl-form-input" id="buyTime" placeholder="请输入购买时间" ng-model="entity.boughtTime" ng-disabled="viewFlag">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="icon" class="am-u-sm-3 am-form-label">封面图</label>
                            <div class="am-u-sm-9">
                                <div class="am-form-group am-form-file">
                                    <div>
                                        <input type="radio" class="am-radio-inline" checked="checked" name="icon" ng-value="1" ng-model="iconType" ng-show="editType==1||editType==2">
                                        <span ng-show="editType==1||editType==2">
                                            网络图片
                                        </span>
                                        <input type="radio" class="am-radio-inline" name="icon" ng-value="2" ng-model="iconType" ng-show="editType==2">
                                        <span ng-show="editType==2">上传图片</span>
                                    </div>
                                    <div class="tpl-form-file-img">
                                        <!--<img src="assets/img/a5.png" alt="">-->
                                        <img class="am-thumbnail" width="600" ng-src="{{entity.icon}}" ng-if="entity.icon!=null&&entity.icon!=''" />
                                        <img class="am-thumbnail" width="600" src="assets/img/book.jpg" ng-if="entity.icon==null||entity.icon==''" />
                                    </div>
                                    <!--<button type="button" class="am-btn am-btn-danger am-btn-sm">
                                        <i class="am-icon-cloud-upload"></i> 上传
                                    </button>-->
                                    <!--<input id="fileInput" type="file" multiple="">-->
                                    <button class="am-btn am-btn-danger am-btn-sm" ngf-select="uploadFiles($files, $invalidFiles)" ngf-max-size="10MB" ng-if="iconType==2&&editType==2">
                                        <i class="am-icon-cloud-upload"></i> 上传文件
                                    </button>
                                    <input type="text" class="tpl-form-input" id="pagenum" placeholder="请输入封面图路径" ng-model="entity.icon" ng-disabled="viewFlag" ng-if="iconType==1&&(editType==1||editType==2)">
                                    <!--<table class="tc_table_cp" border="0">
                                        <tr>
                                            <td width="104">图片上传：</td>
                                            <td colspan="3">
                                                <div id="fileList">

                                                </div>
                                                <div class="cp_img_jia" id="filePicker"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="104"></td>
                                            <td colspan="3">
                                                <button id="ctlBtn" class="btn btn-default">开始上传</button>
                                            </td>
                                        </tr>
                                    </table>-->

                                </div>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="nodeinfo" class="am-u-sm-3 am-form-label">简介</label>
                            <div class="am-u-sm-9">
                                <textarea class="" rows="10" id="nodeinfo" placeholder="请输入简介" ng-model="entity.book_des" ng-disabled="viewFlag"></textarea>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " ng-click="save()" ng-show="!viewFlag">保存</button>
                                <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " ng-click="cancel()" ng-show="!viewFlag">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
